import router from '../router/router.js'
import axios from 'axios'

axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'
axios.defaults.headers.put['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'

// 创建axios实例
const service = axios.create({
   baseURL: "http://localhost:8010/api", // api 的 base_url
  // baseURL: "http://127.0.0.1:9000/brush/", // api 的 base_url
  // baseURL: "https://qy.brush.1874.fit/brush/",
  timeout: 600000 // 请求超时时间
})

export default service